//
//  BITableView.m
//  BIProjectModule
//
//  Created by yown on 2021/9/24.
//

#import "BITableView.h"

@implementation BITableView

#pragma mark - Life Cycle

- (instancetype)init {
    self = [super init];
    if (self) {
        [self bi_setupCommonConfig];
    }
    return self;
}

- (instancetype)initWithFrame:(CGRect)frame style:(UITableViewStyle)style {
    self = [super initWithFrame:frame style:style];
    if (self) {
        [self bi_setupCommonConfig];
    }
    return self;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    [self bi_setupCommonConfig];
}

#pragma mark - Private Method

- (void)bi_setupCommonConfig {
    self.showsVerticalScrollIndicator = NO;
    self.showsHorizontalScrollIndicator = NO;
    self.estimatedRowHeight = 0;
    self.estimatedSectionHeaderHeight = 0;
    self.estimatedSectionFooterHeight = 0;
    self.tableFooterView = [UIView new];
    self.separatorStyle = UITableViewCellSeparatorStyleNone;
    if (@available(iOS 15.0, *)) {
        self.sectionHeaderTopPadding = 0;
    }
}

@end
